package com.qumitech.visualnovel.datasource.editor;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.editor.AuthorDAO;
import com.qumitech.visualnovel.model.dto.AuthorQueryDTO;

public interface AuthorDAOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AuthorDAO record);

    int insertSelective(AuthorDAO record);

    AuthorDAO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AuthorDAO record);

    int updateByPrimaryKey(AuthorDAO record);

    AuthorDAO getAuthor(Integer uid);

    int total(AuthorQueryDTO param);

    List<AuthorDAO> list(AuthorQueryDTO param);

    int dashboardTotal();

    List<AuthorDAO> dashboardList(@Param("offset") Integer offset, @Param("limit") Integer limit);
}